package com.jsm.tf.response;

import lombok.Data;

@Data
public class TfResponse<T> {
    private int code;
    private boolean success;
    private T data;
    private String errorMsg;

    public TfResponse(T data) {
        this.data = data;
        this.code = 200;
    }

    public boolean isSuccess() {
        return code == 200;
    }
}
